package com.xyz.blockqueue;

import java.util.concurrent.BlockingQueue;

public abstract class AbsQueue<T> {

    public void put(T strategy) throws InterruptedException {
        getQueue().put(strategy);
    }

    public T take() throws InterruptedException {
        return getQueue().take();
    }

    public abstract BlockingQueue<T> getQueue();

}
